import { post, get } from '@/utils/request'

const addProperty = params => post('/problem_property/addProperty', params)
const updateProperty = params => post('/problem_property/updateProperty', params)
const deleteProperty = params => post('/problem_property/deleteProperty', params)
const getProperty = ({questionId}) => get(`/problem_property/${questionId}`)
const listProperty = () => get('/problem_property/listProperty')

export {
  addProperty,
  updateProperty,
  getProperty,
  listProperty,
  deleteProperty
} 
